import  adminInstance  from '@/utils/http'
//获取分类列表
export const getCategoryList = (data) => {
    return adminInstance.post('/category/list',data)
}
//添加分类
export const addCategory = (data) => {
    return adminInstance.post('/category/add', data)
}
//更新分类
export const updateCategory = (data) => {
    return adminInstance.put('/category/update', data)
}
//删除分类
export const deleteCategory = (id) => {
    return adminInstance.delete(`/category/delete/${id}`)
}
//获取分类详情
export const getCategoryDetail = (id) => {
    return adminInstance.get(`/category/detail/${id}`)
}